package com.project.petLossSystem.common;

/**
 * 自定义异常
 */
public class CustomException extends RuntimeException{

    // 封装异常函数，用于比如 权限不对 等不需要栈帧的异常
    public static void failure(String msg){
        throw new CustomException(msg);
    }

    private CustomException(String msg){
        super(msg);
    }
}
